package com.celesea.auth.position.entity;

import com.celesea.framework.entity.BusEntity;
import com.celesea.framework.util.Version;

import javax.persistence.Column;
import javax.persistence.Table;


@Version
@Table(name = "position")
public class Position extends BusEntity {
    @Column(name = "`name`", columnDefinition = "名称")
    private String name;
    @Column(name = "`py`", columnDefinition = "拼音")
    private String py;
    @Column(name = "`code`", columnDefinition = "编码")
    private String code;
    @Column(name = "`sort`", columnDefinition = "排序")
    private Integer sort;
    @Column(name = "`company`", columnDefinition = "所属公司", nullable = false)
    private String company;
    @Column(name = "`dept_id`", columnDefinition = "所属部门")
    private String deptId;
    @Column(name = "`dept_name`", columnDefinition = "所属部门名称")
    private String deptName;
    @Column(name = "`description`", columnDefinition = "描述")
    private String description;
    @Column(name = "`extend`", columnDefinition = "是否继承到下级:[0：否，1：是]", nullable = false)
    protected Byte extend;
    @Column(name = "`bubble`", columnDefinition = "是否上级可以见:[0：否，1：是]", nullable = false)
    protected Byte bubble;
    @Column(name = "`status_flag`", columnDefinition = "启用状态：[0：离职，1：正常]", nullable = false)
    private Byte statusFlag;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }


    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public Byte getExtend() {
        return extend;
    }

    public void setExtend(Byte extend) {
        this.extend = extend;
    }

    public Byte getBubble() {
        return bubble;
    }

    public void setBubble(Byte bubble) {
        this.bubble = bubble;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }
}
